package com.dgut.hisystem.mapper;

import com.dgut.hisystem.entity.Prescription;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PrescriptionMapper {
    @Select({"SELECT bl_id, cf_id, cf_datetime FROM prescription_info WHERE cf_id=#{id}"})
    Prescription getPrescriptionById(long id);

    @Select({"Select * from prescription_info where bl_id=#{id}"})
    Prescription getPrescriptionByBl_id(long id);

    void insert(Prescription user);

    void update(Prescription user);

    void delete(long id);
}
